

#include "ScnsInclude.h"
#include "init.h"
#include "JctoInclude.h"

int main(void)
{
    init();
    hxPrintfFL("%d\n",sizeof(ScnsKeyStatusMachine));
    static const char keys[][24]={
        {0,0,0,1,0,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,0,0,0,},
        {0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,},
    };
    ScnsKeyStatusMachine sm;
    for(int i=0;i<(sizeof(keys)/sizeof(keys[0]));++i)
    {
        hxPrintfFL(blankLine"\n");
        for(int j=0;j<(sizeof(keys[0])/sizeof(keys[0][0]));++j)
        {
            hxPrintfFL("%d %d %d\n",i,j,keys[i][j]);
            scnsKeyStatusMachine(&sm,keys[i][j],1,5,5,SCNS_KEY_S1);
            scnsKeyCallback();
        }
    }

    stop(0);
    return 0;
}